package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class NetsignExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public NetsignExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andNetidIsNull() {
            addCriterion("netid is null");
            return (Criteria) this;
        }

        public Criteria andNetidIsNotNull() {
            addCriterion("netid is not null");
            return (Criteria) this;
        }

        public Criteria andNetidEqualTo(Integer value) {
            addCriterion("netid =", value, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidNotEqualTo(Integer value) {
            addCriterion("netid <>", value, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidGreaterThan(Integer value) {
            addCriterion("netid >", value, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidGreaterThanOrEqualTo(Integer value) {
            addCriterion("netid >=", value, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidLessThan(Integer value) {
            addCriterion("netid <", value, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidLessThanOrEqualTo(Integer value) {
            addCriterion("netid <=", value, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidIn(List<Integer> values) {
            addCriterion("netid in", values, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidNotIn(List<Integer> values) {
            addCriterion("netid not in", values, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidBetween(Integer value1, Integer value2) {
            addCriterion("netid between", value1, value2, "netid");
            return (Criteria) this;
        }

        public Criteria andNetidNotBetween(Integer value1, Integer value2) {
            addCriterion("netid not between", value1, value2, "netid");
            return (Criteria) this;
        }

        public Criteria andNetnumberIsNull() {
            addCriterion("netnumber is null");
            return (Criteria) this;
        }

        public Criteria andNetnumberIsNotNull() {
            addCriterion("netnumber is not null");
            return (Criteria) this;
        }

        public Criteria andNetnumberEqualTo(Integer value) {
            addCriterion("netnumber =", value, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberNotEqualTo(Integer value) {
            addCriterion("netnumber <>", value, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberGreaterThan(Integer value) {
            addCriterion("netnumber >", value, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("netnumber >=", value, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberLessThan(Integer value) {
            addCriterion("netnumber <", value, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberLessThanOrEqualTo(Integer value) {
            addCriterion("netnumber <=", value, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberIn(List<Integer> values) {
            addCriterion("netnumber in", values, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberNotIn(List<Integer> values) {
            addCriterion("netnumber not in", values, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberBetween(Integer value1, Integer value2) {
            addCriterion("netnumber between", value1, value2, "netnumber");
            return (Criteria) this;
        }

        public Criteria andNetnumberNotBetween(Integer value1, Integer value2) {
            addCriterion("netnumber not between", value1, value2, "netnumber");
            return (Criteria) this;
        }

        public Criteria andRoomidIsNull() {
            addCriterion("roomid is null");
            return (Criteria) this;
        }

        public Criteria andRoomidIsNotNull() {
            addCriterion("roomid is not null");
            return (Criteria) this;
        }

        public Criteria andRoomidEqualTo(Integer value) {
            addCriterion("roomid =", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotEqualTo(Integer value) {
            addCriterion("roomid <>", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidGreaterThan(Integer value) {
            addCriterion("roomid >", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidGreaterThanOrEqualTo(Integer value) {
            addCriterion("roomid >=", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLessThan(Integer value) {
            addCriterion("roomid <", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidLessThanOrEqualTo(Integer value) {
            addCriterion("roomid <=", value, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidIn(List<Integer> values) {
            addCriterion("roomid in", values, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotIn(List<Integer> values) {
            addCriterion("roomid not in", values, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidBetween(Integer value1, Integer value2) {
            addCriterion("roomid between", value1, value2, "roomid");
            return (Criteria) this;
        }

        public Criteria andRoomidNotBetween(Integer value1, Integer value2) {
            addCriterion("roomid not between", value1, value2, "roomid");
            return (Criteria) this;
        }

        public Criteria andBuyerIsNull() {
            addCriterion("buyer is null");
            return (Criteria) this;
        }

        public Criteria andBuyerIsNotNull() {
            addCriterion("buyer is not null");
            return (Criteria) this;
        }

        public Criteria andBuyerEqualTo(Integer value) {
            addCriterion("buyer =", value, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerNotEqualTo(Integer value) {
            addCriterion("buyer <>", value, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerGreaterThan(Integer value) {
            addCriterion("buyer >", value, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerGreaterThanOrEqualTo(Integer value) {
            addCriterion("buyer >=", value, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerLessThan(Integer value) {
            addCriterion("buyer <", value, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerLessThanOrEqualTo(Integer value) {
            addCriterion("buyer <=", value, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerIn(List<Integer> values) {
            addCriterion("buyer in", values, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerNotIn(List<Integer> values) {
            addCriterion("buyer not in", values, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerBetween(Integer value1, Integer value2) {
            addCriterion("buyer between", value1, value2, "buyer");
            return (Criteria) this;
        }

        public Criteria andBuyerNotBetween(Integer value1, Integer value2) {
            addCriterion("buyer not between", value1, value2, "buyer");
            return (Criteria) this;
        }

        public Criteria andSellerIsNull() {
            addCriterion("seller is null");
            return (Criteria) this;
        }

        public Criteria andSellerIsNotNull() {
            addCriterion("seller is not null");
            return (Criteria) this;
        }

        public Criteria andSellerEqualTo(Integer value) {
            addCriterion("seller =", value, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerNotEqualTo(Integer value) {
            addCriterion("seller <>", value, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerGreaterThan(Integer value) {
            addCriterion("seller >", value, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerGreaterThanOrEqualTo(Integer value) {
            addCriterion("seller >=", value, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerLessThan(Integer value) {
            addCriterion("seller <", value, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerLessThanOrEqualTo(Integer value) {
            addCriterion("seller <=", value, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerIn(List<Integer> values) {
            addCriterion("seller in", values, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerNotIn(List<Integer> values) {
            addCriterion("seller not in", values, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerBetween(Integer value1, Integer value2) {
            addCriterion("seller between", value1, value2, "seller");
            return (Criteria) this;
        }

        public Criteria andSellerNotBetween(Integer value1, Integer value2) {
            addCriterion("seller not between", value1, value2, "seller");
            return (Criteria) this;
        }

        public Criteria andNetstatusIsNull() {
            addCriterion("netstatus is null");
            return (Criteria) this;
        }

        public Criteria andNetstatusIsNotNull() {
            addCriterion("netstatus is not null");
            return (Criteria) this;
        }

        public Criteria andNetstatusEqualTo(Boolean value) {
            addCriterion("netstatus =", value, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusNotEqualTo(Boolean value) {
            addCriterion("netstatus <>", value, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusGreaterThan(Boolean value) {
            addCriterion("netstatus >", value, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusGreaterThanOrEqualTo(Boolean value) {
            addCriterion("netstatus >=", value, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusLessThan(Boolean value) {
            addCriterion("netstatus <", value, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusLessThanOrEqualTo(Boolean value) {
            addCriterion("netstatus <=", value, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusIn(List<Boolean> values) {
            addCriterion("netstatus in", values, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusNotIn(List<Boolean> values) {
            addCriterion("netstatus not in", values, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusBetween(Boolean value1, Boolean value2) {
            addCriterion("netstatus between", value1, value2, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNetstatusNotBetween(Boolean value1, Boolean value2) {
            addCriterion("netstatus not between", value1, value2, "netstatus");
            return (Criteria) this;
        }

        public Criteria andNettimeIsNull() {
            addCriterion("nettime is null");
            return (Criteria) this;
        }

        public Criteria andNettimeIsNotNull() {
            addCriterion("nettime is not null");
            return (Criteria) this;
        }

        public Criteria andNettimeEqualTo(Date value) {
            addCriterion("nettime =", value, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeNotEqualTo(Date value) {
            addCriterion("nettime <>", value, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeGreaterThan(Date value) {
            addCriterion("nettime >", value, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeGreaterThanOrEqualTo(Date value) {
            addCriterion("nettime >=", value, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeLessThan(Date value) {
            addCriterion("nettime <", value, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeLessThanOrEqualTo(Date value) {
            addCriterion("nettime <=", value, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeIn(List<Date> values) {
            addCriterion("nettime in", values, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeNotIn(List<Date> values) {
            addCriterion("nettime not in", values, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeBetween(Date value1, Date value2) {
            addCriterion("nettime between", value1, value2, "nettime");
            return (Criteria) this;
        }

        public Criteria andNettimeNotBetween(Date value1, Date value2) {
            addCriterion("nettime not between", value1, value2, "nettime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}